var USERNAME = "username";
var PASSWORD = "password";
if (USERNAME) {
	$("#username").val($.cookie(USERNAME));
}
if (PASSWORD) {
	$("#password").val($.cookie(PASSWORD));
}
$("#checkbox").click(function() {
	if (this.checked) {
		$.cookie(USERNAME, $("#username").val(), {path: '/', expires: 14});
        $.cookie(PASSWORD, $("#password").val(), {path: '/', expires: 14});
	}
});